﻿using DirectUI.Mobile.UI;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace DirectUIUnitTest
{

    public class ObjectDataProviderTestData
    {
        private int _c;
        public ObjectDataProviderTestData(int a)
        {
            _c = a;
        }
        public int Test(int a, int b)
        {
            return a + b + _c;
        }
    }
    /// <summary>
    ///This is a test class for ObjectDataProviderTest and is intended
    ///to contain all ObjectDataProviderTest Unit Tests
    ///</summary>
    [TestClass()]
    public class ObjectDataProviderTest
    {


      

        /// <summary>
        ///A test for BeginQuery
        ///</summary>
        [TestMethod()]
        [DeploymentItem("DirectUI.dll")]
        public void BeginQueryTest()
        {
            ObjectDataProvider target = new ObjectDataProvider();
            target.ObjectType = typeof(ObjectDataProviderTestData);
            target.ConstructorParameters.Add(10);
            target.MethodName = "Test";
            target.MethodParameters.Add(20);
            target.MethodParameters.Add(32);
            Assert.AreEqual(target.Data, 62);
        }
    }
}
